﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="OrgSingle.aspx.cs" Inherits="HealthSystem.sysAdmin.OrgSingle" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
     <ext:PageManager ID="PageManager1" runat="server" AutoSizePanelID="panle1" />
     <ext:Panel  runat="server" ID="panle1" Layout="Fit" Title="机构管理员" ShowHeader="false" ShowBorder="false">
        <Toolbars>
            <ext:Toolbar ID="Toolbar1" runat="server">
                <Items>
                <ext:Button ID="Button1" runat="server" Text="新增机构管理员" Icon="Add" OnClick="new_click"></ext:Button>
                </Items>
            </ext:Toolbar>
        </Toolbars>
        <Items>
            <ext:Grid runat="server" ID="Gird1" DataKeyNames="XX_UserName"  EnableRowNumber="true" OnRowCommand="Row_click"
              ShowHeader="false">
                <Columns>
                    <ext:BoundField DataField="XX_UserName" HeaderText="帐户" />
                    <ext:BoundField DataField="CNName" HeaderText="名字" />
                     <ext:LinkButtonField HeaderText="重置密码" TextAlign="Center" ConfirmText="你确定要重置密码？" ConfirmTarget="Top"
                ColumnID="lbfAction2" Width="100px" CommandName="reset" Text="重置密码" />
                  <ext:WindowField ColumnID="myWindowField" Width="120px" WindowID="Window1" HeaderText="修改机构管理员"
                Icon="Pencil" ToolTip="编辑" DataTextFormatString="{0}" DataIFrameUrlFields="XX_UserName"
                DataIFrameUrlFormatString="OrgSingle_Add.aspx?act=edit&id={0}" DataWindowTitleField="XX_UserName"
                DataWindowTitleFormatString="编辑 - {0}"   />
                  <ext:LinkButtonField HeaderText="删除" TextAlign="Center" ConfirmText="你确定要删除吗？" Icon="Delete" ConfirmTarget="Top"
                ColumnID="lbfAction1" Width="50px" CommandName="delete" Text="" />
                </Columns>
            </ext:Grid>
        </Items>
    </ext:Panel>
     <ext:Window ID="Window1" CloseAction="HidePostBack" runat="server" IsModal="true" Hidden="true" Target="Self"
        EnableResize="true" EnableMaximize="true" EnableIFrame="true" IFrameUrl="about:blank"
        Width="350px" Height="250px" OnClose="Window1_Close">
    </ext:Window>
    </form>
</body>
</html>
